package com.zzd.entity;

import lombok.Data;

@Data
public class Response<T> {
    private T data;
    private String message;
    private int errCode;
    //省略访问器方法
    public Response(T data) {
        this.data = data;
        this.message = "";
        this.errCode = 0;
    }
    public Response(T data, String message, int errCode) {
        this.data = data;
        this.message = message;
        this.errCode = errCode;
    }


}